<html>
<head>
<script src="../../main/resources/net/pimpas/web/jsf/components/js/pimpas/pimpas-full-release.js"></script>
</head>
<body>
<script>
var i = 0;
function processInterval() {
	alert('interval executed!');
	// restart timer
	if((i++)>3) {
		alert('done!');
		interval.stop( );
	}
}
var interval = new pimpas.Interval( 2000, processInterval, null );
interval.go();
</script>
</body>
</html>